package com.gdufe.studytogether.service.comment;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gdufe.studytogether.domain.R;
import com.gdufe.studytogether.domain.pojo.Comment;
import com.gdufe.studytogether.domain.pojo.User;
import org.springframework.web.bind.annotation.RequestBody;

public interface CommentService extends IService<Comment> {
    R listComment(Long pageSize, Long pageCurrent, Integer competitionId, User user,String comment);
    R addComment(Comment comment) throws Exception;
    R deleteComment(Integer id) throws Exception;
    R getCommentsByParentId(Long pageSize,Long pageCurrent,Integer id,User user);
    R likeComment(Integer id) throws Exception;
    R unlikeComment(Integer id) throws Exception;
}
